
<div class="lofi-box " ng-show="$parent.showLockFillIn">
    <div class="base-background "></div>


        <div class="lofi-content-box lofi-countent-min-hw">
            <div class="base-window-content-box ">
                <div class="base-window-title-box">
                    <h6 class="base-window-head base-window-title">{{{true: '修改设备', false: '添加设备'}[!!$parent.modifyLock]}}</h6>
                </div>
                <div class="lofi-text-content lofi-text-content-change">
                    <div class="lofi-content-text lofi-content-first lofi-content-text-height">
                        <p class="lofi-content-title">所属社区：</p><input disabled="disabled" value="companyDetail.communityName"  ng-model="companyDetail.communityName" type="text" class="form-control lofi-content-input">
                    </div>
                    <div class="lofi-content-text">
                        <p class="lofi-content-title">管理员：</p><select class="pro-write-base-backimg form-control lofi-content-input" ng-class="lockModel.manager.name?'':'select-option'" ng-model="lockModel.manager" ng-options="manager.name for manager in managerList">
                        <option ng-hide="lockModel.manager" value="">{{lockModel.manager.name?lockModel.manager.name:'请选择' }}</option>

                        <!--<option ng-hide="lockModel.manager" value="">请选择</option>-->
                        </select>
                    </div>
                    <div class="lofi-content-text lofi-content-text-height">
                        <p class="lofi-content-title">设备名称：</p><input ng-model="lockModel.name" type="text" class="form-control lofi-content-input">
                    </div><div class="lofi-content-text lofi-content-text-height">
                        <p class="lofi-content-title">门号：</p><input ng-model="lockModel.snr" type="text" class="form-control lofi-content-input">
                    </div>
                    <div class="lofi-content-text lofi-content-text-height">
                        <p class="lofi-content-title">设备描述：</p><input ng-model="lockModel.desc" type="text" class="form-control lofi-content-input">
                    </div>
                    <div class="lofi-content-text lofi-content-text-height">
                        <p class="lofi-content-title">控制器ID：</p><input ng-model="lockModel.controlId" type="text" class="form-control lofi-content-input">
                    </div>
                    <div class="lofi-content-text lofi-content-text-height">
                        <p class="lofi-content-title">控制器值：</p><input ng-model="lockModel.controlKey" type="text" class="form-control lofi-content-input">
                    </div>
                    <div class="lofi-content-text lofi-content-text-height" id="hourSelect" ng-init="showStartTimeSelect=false;showEndTimeSelect=false">
                        <p class="lofi-content-title">可用时间段：</p><div class="dropdown form-control lofi-content-time lofi-content-select">
                            <a ng-click="showStartTimeSelect=!showStartTimeSelect;showEndTimeSelect=false" class="dropdown-toggle datepicker-select" id="startTimeLabel" role="button" data-toggle="dropdown" data-target="#"
                               href="">
                                <p class="lofi-time-text base-line-center" ng-class="lockModel.getStartTimeStr() ? 'selected-start-time':''">{{lockModel.getStartTimeStr()== null ? '开始时间' : lockModel.getStartTimeStr()}}</p>
                            </a>
                            <ul ng-class="{true: 'lofi-time-show'}[showStartTimeSelect]" class="dropdown-menu" role="menu" aria-labelledby="startTimeLabel">
                                <datetimepicker data-ng-model="data.date"
                                                data-on-set-time="onTimeSetStart(newDate, oldDate)"
                                                data-before-render="beginDateBeforeRender($view,$dates)"
                                                data-datetimepicker-config="{'startView':'hour'}"></datetimepicker>
                            </ul>
                        </div><span class="lofi-time-line"></span><div class="dropdown form-control lofi-content-time lofi-content-select">
                            <a ng-click="showEndTimeSelect=!showEndTimeSelect;showStartTimeSelect=false" class="dropdown-toggle datepicker-select" id="endTimeLabel" role="button" data-toggle="dropdown" data-target="#"
                               href="">
                                <p class="lofi-time-text base-line-center" ng-class="lockModel.getEndTimeStr() ? 'selected-start-time':''">{{lockModel.getEndTimeStr()==null ? '结束时间' : lockModel.getEndTimeStr()}}</p>
                            </a>
                            <ul ng-class="{true: 'lofi-time-show'}[showEndTimeSelect]" class="dropdown-menu" role="menu" aria-labelledby="endTimeLabel">
                                <datetimepicker data-ng-model="data.date"
                                                data-on-set-time="onTimeSetEnd(newDate, oldDate)"
                                                data-before-render="endDateBeforeRender($view,$dates)"
                                                data-datetimepicker-config="{'startView':'hour'}"></datetimepicker>
                            </ul>
                        </div>
                    </div>
                    <div class="lofi-content-text lofi-text-type">
                        <p class="lofi-content-title">授权类型：</p><input ng-checked="lockModel.authType=='GENERIC'" ng-click="lockModel.authType='GENERIC'" class="lofi-radio lofi-radio-left" type="radio">通用授权
                        <input ng-checked="lockModel.authType=='EXCLUSIVE'" ng-click="lockModel.authType='EXCLUSIVE'" class="lofi-radio " type="radio">专有授权
                        <input ng-checked="lockModel.authType=='PRIVATE'" ng-click="lockModel.authType='PRIVATE'" class="lofi-radio " type="radio">私有授权
                    </div>
                    <div class="lofi-content-text lofi-content-margin">
                        <p class="lofi-content-title ">是否可用：</p><div id="lofiContentValid" class="lofi-content lofi-font-position" >
                        <input ng-checked="lockModel.actived" ng-click="lockModel.actived=true" class="lofi-radio lofi-radio-left" type="radio">可用
                        <input ng-checked="!lockModel.actived" ng-click="lockModel.actived=false" class="lofi-radio lofi-valid-no " type="radio">不可用
                        </div>
                    </div>
                </div>
                <div class="pro-write-page-box pro-phone-button-box">
                    <input ng-click="submit()" type="button" class="pro-phone-button" value="{{{true: '确 认 修 改', false: '添 加'}[!!$parent.modifyLock]}}">
                </div>
            </div>

            <a class="base-close-window" ng-click="$parent.showLockFillIn=false">
                <!--<span class="base-close-window-content" ng-style="EleStyle.lineHeight('base-close-window', 1)">✕</span>-->
                <span class="base-close-window-content">ｘ</span>
            </a>

        </div>
</div>